package com.example.headfirstprojectdemo.observer.javaweatherStation;

import java.util.concurrent.TimeUnit;

public class WeatherStation {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentConditionsDisplay currentConditionsDisplay =
                new CurrentConditionsDisplay(weatherData);
        for (int x = 0; x <= 200; x++ ){
            try {
                weatherData.setMeasurements(x,65,30.3f);
                TimeUnit.SECONDS.sleep(1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
